# Source https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/volume-snapshots#create-snapshotclass
{{- if (.Values.global.enabledModules | has "snapshot-controller") }}
---
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
  {{- include "helm_lib_module_labels" (list . (dict "app" "cinder-csi-driver")) | nindent 2 }}
  name: gke
driver: pd.csi.storage.gke.io
deletionPolicy: Delete
{{- end }}
